
package com.evildog.workspace.common.object;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * 查询参数
 */
@Data
@Accessors(chain = true)
@ApiModel(description = "查询条件")
public class PageQuery {

    /**
     * 当前页
     */
    @ApiModelProperty(value = "当前页",notes = "默认为1")
    private Integer pageNum;

    /**
     * 每页的数量
     */
    @ApiModelProperty(value = "每页的数量",notes = "默认为5")
    private Integer pageLimit;

    /**
     * 排序的字段名
     * -id,+id
     */
    @ApiModelProperty(hidden = true)
    private List<String> sorts;

}
